package com.jm.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 连接套餐与单品的对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("setmeal_toy")
public class SetmealToy implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId
    private Long id;

    private Long setmealId;

    private Long toyId;

    //套餐名称
    private String name;

    //价格(单品)
    private BigDecimal price;
    //    多少份
    private Long copies;


    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
